const NODE_ENV = process.env.NODE_ENV as string;
console.log(NODE_ENV);
const comm = {
    toLogin(type?:number){
        const u = type === 2? "register" : "login";
        if(NODE_ENV === "development"){
            window.location.href = `http://localhost:7788/${u}?url=${encodeURIComponent(window.location.href)}`;
         }else{
            window.location.href = `/${u}?url=${encodeURIComponent(window.location.href)}`;
         }
    }
};


export default comm;